package com.zhyz.bookstore.entity;

public class OrderItems {

    private String id;//订单项ID
    private int quantity;//订单项数量
    private double price;//商品单价
    private String bookid;//商品ID
    private String ordernum;//订单号


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public OrderItems() {
    }

    public OrderItems(String id, int quantity, double price, String bookid, String ordernum) {
        this.id = id;
        this.quantity = quantity;
        this.price = price;
        this.bookid = bookid;
        this.ordernum = ordernum;
    }

    @Override
    public String toString() {
        return "OrderItems{" +
                "id='" + id + '\'' +
                ", quantity=" + quantity +
                ", price=" + price +
                ", bookId='" + bookid + '\'' +
                ", ordernum='" + ordernum + '\'' +
                '}';
    }
}
